package com.bbms.entity;

public enum SuccessCode {
	deleteSuccess{
		public String getName(){ return "删除成功";}
		public int getCode(){ return 0;};
	},
    updateSuccess{
        public String getName(){return "修改成功";}
        public int getCode(){return 0;}
    },
    borrowSuccess{
    	public String getName(){return "借阅成功";}
        public int getCode(){return 0;}
    },
    insertSuccess{
        public String getName(){return "插入成功";}
        public int getCode(){return 0;}
    },
    renewBorrowSuccess{
    	 public String getName(){return "续借成功";}
         public int getCode(){return 0;}
    },
    restoreSuccess{
    	public String getName(){return "归还成功";}
        public int getCode(){return 0;}
    };
	
	public abstract String getName();
    public abstract int getCode();
}
